<?
/*
 *  GGB - Gelin's Guest Book.
 *  Copyright (C) 2010 Denis Nelubin aka Gelin
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 *
 *  http://gelin.ru
 *  mailto:den@gelin.ru
 *
 *  Description:    Template of reCAPTCHA form block.
 *
 *  History:
 *  2010-01-01  Gelin   Initially created.
 *
 */
?>

<?if ($config['recaptcha']['enable']):?>

<script>
    var RecaptchaOptions = {
        theme: 'custom',
        lang: 'ru',
        custom_theme_widget: 'recaptcha_widget'
    };
</script>

<div id="recaptcha_widget" class="recaptcha" style="display:none">

    <div class="icons">
        <a href="javascript:Recaptcha.reload()"
            title="Другие слова"><img src="template/gelin/refresh.png"/></a>
        <a href="javascript:Recaptcha.switch_type('audio')"
            title="Проверка на слух"
            class="recaptcha_only_if_image"><img src="template/gelin/audio.png"/></a>
        <a href="javascript:Recaptcha.switch_type('image')"
            title="Проверка изображением"
            class="recaptcha_only_if_audio"><img src="template/gelin/image.png"/></a>
        <a href="javascript:Recaptcha.showhelp()"
            title="Помощь"><img src="template/gelin/help.png"/></a>
    </div>

    <div id="recaptcha_image" class="image"></div>

    <div class="recaptcha_only_if_incorrect_sol error">Неправильно, попробуйте еще раз.</div>
    <span class="recaptcha_only_if_image">Введите два слова<sup>*</sup></span>
    <span class="recaptcha_only_if_audio">Введите цифры, которые вы услышали<sup>*</sup></span>

    <input type="text" id="recaptcha_response_field" name="recaptcha_response_field" />

</div>

<?=recaptcha_get_html($config['recaptcha']['publickey'], @$recaptcha_error)?>

<?endif;?>